# Contributor: Rejah Rehim <rejah@beaglesecurity.com>
# Maintainer: Rejah Rehim <rejah@beaglesecurity.com>
pkgname=py3-python-logstash
_pkgname=python-logstash
pkgver=0.4.6
pkgrel=1
pkgdesc="Python logging handler for Logstash"
options="!check" # no test suite
url="https://github.com/vklochan/python-logstash"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools"
subpackages="$pkgname-doc"
source="https://files.pythonhosted.org/packages/source/p/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
	install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}

sha512sums="
b8cff0e6f8efb97f6450c98f36f7339b63daafb34c415eebc18d8d4ac17aeb2e2e0ba934a841317e9cc9f424e664d3b57d73ac74e30d98c3dd273db2c886f2b7  python-logstash-0.4.6.tar.gz
"
